import { xhrPostJson } from '@/services';
import { DynamicObjectAny } from '@/typings';

const baseUrl = '/arcv';

const api = {
  page: `${baseUrl}/whse/page`,
  create: `${baseUrl}/whse/create`,
  detail: `${baseUrl}/whse/detail`,
  delete: `${baseUrl}/whse/delete`,
  update:`${baseUrl}/whse/update`
};

// 新增
export const warehouseCreate = (params: DynamicObjectAny) => {
  return xhrPostJson(api.create, params);
};
// 编辑
export const warehouseUpdate = (params: DynamicObjectAny) => {
  return xhrPostJson(api.update, params);
};
// 删除
export const warehouseDelete = (params: DynamicObjectAny) => {
  return xhrPostJson(api.delete, params);
};

export default api;
